package me.zhenqu.model.pojo.entity;

import me.zhenqu.model.pojo.inf.JSONable;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: ybtan
 * Date: 11-10-31
 * Time: 下午11:26
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "status", catalog = "zhenqu")
public class Status implements JSONable {
    private long status_id;
    private String text;
    private Date pubtime;
    private int private_public;
    private long user_id;
    private String user_name;
    private boolean is_comment;
    private long in_reply_status_id;
    private long target_group_id;
    private long image_id;

    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "increment")
    public long getStatus_id() {
        return status_id;
    }

    public void setStatus_id(long status_id) {
        this.status_id = status_id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getPubtime() {
        return pubtime;
    }

    public void setPubtime(Date pubtime) {
        this.pubtime = pubtime;
    }

    public int getPrivate_public() {
        return private_public;
    }

    public void setPrivate_public(int private_public) {
        this.private_public = private_public;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public boolean isIs_comment() {
        return is_comment;
    }

    public void setIs_comment(boolean is_comment) {
        this.is_comment = is_comment;
    }

    public long getIn_reply_status_id() {
        return in_reply_status_id;
    }

    public void setIn_reply_status_id(long in_reply_status_id) {
        this.in_reply_status_id = in_reply_status_id;
    }

    public long getTarget_group_id() {
        return target_group_id;
    }

    public void setTarget_group_id(long target_group_id) {
        this.target_group_id = target_group_id;
    }

    public long getImage_id() {
        return image_id;
    }

    public void setImage_id(long image_id) {
        this.image_id = image_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String toJson() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
    @Override

    public JSONable fromJson(String jsonstr) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
